﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MvcApplication9.Models
{
    [MetadataTypeAttribute(typeof(User.UsersMetadata))]
    public partial class User
    {
        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; }

        internal sealed class UsersMetadata
        {
            [Required]
            [Display(Name = "User name")]
            public string Login;

            [Required]
            [DataType(DataType.Password)]
            [Display(Name = "Password")]
            public string Password;


        }
    }
}